python / django -- server

by: maltezc, 9 years ago


Hi all, question. In one of the latest tutorials in the python/django series, we moved over our stuff from mysite over to django_project on the server with putty and winscp.

Now that we've done that, does that now mean that if we want to edit the code, we edit it over there? If so, I tried adding a google maps api to the header.html file but when I went to run the website, nothing showed for it. Could someone help me on that?

Also, when I told my server to now look for the html code which contained the bootstrap / css, it brought it all back, however the picture image didnt come through. it shows a broken image icon in its place.

Lastly, when I go to the IP address assigned, it only works 2/3s of the time. The other 1/3, it refers back to the django "it worked!" letting you know that it has worked....is there a way to make this work all of the time?

Thanks in advance.





You must be logged in to post. Please login or register an account.



Generally, you do not want to edit the live version of your website, except when pushing updates. You'll typically run a local version, make changes, do your testing, then push live.

For the Google maps API thing, press f12 to open dev console, refresh, and see if there are any errors.

For the ip address result bouncing around, are you on Windows? If so, open cmd.exe, type:

ipconfig /flushdns

-Harrison 9 years ago

You must be logged in to post. Please login or register an account.